/* eslint-disable import/no-dynamic-require */
const betterRequire = (absPath) => { // 两种引入方式
  // eslint-disable-next-line global-require
  const module = require(absPath);
  if (module.default) {
    return module.default;
  }
  return module;
};

export {
  betterRequire,
};
